package org.lanqiao.service.impl;

import org.lanqiao.dao.Musicdao;
import org.lanqiao.entity.Music;
import org.lanqiao.service.Musicservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;



@Service("musicserviceimpl")
public class Musicserviceimpl implements Musicservice {
	@Autowired
	Musicdao music;
	@Override
	public PageInfo<Music> selectmusics(Music musicimpl,int pageNum,int PageSize) {
		PageHelper.startPage(pageNum, PageSize);
		PageInfo<Music> pageInfo = new PageInfo<>(music.selectmusics(musicimpl));
		return pageInfo;
	}

}
